<?php
class DetallevalesalidasController extends AppController {

	var $name = 'Detallevalesalidas';
	var $components = array('RequestHandler');
	
	function index(){
		$this->layout="ajax";
					
		if($this->JQGridPaginate->isGrid){
			/*
		    $fields = array('Detallevalesalida.id',
							'"Articulo"."codigo" AS "Detallevalesalida__articulocodigo"',
							'"Articulo"."descripcion" AS "Detallevalesalida__articulodescripcion"',
							'"Articulo"."presentacion" AS "Detallevalesalida__articulopresentacion"',
							'Detallevalesalida.cantidad',
							'Detallevalesalida.prc_total',
							'Detallevalesalida.observacion');
			
			$this->JQGridPaginate->recursive = 0;
			$this->JQGridPaginate->cakefields = $fields;
			$this->autoRender = false;
			
			echo $this->JQGridPaginate->paginate("Detallevalesalida");
			*/
		}
	}	
}